home *** CD-ROM | disk | FTP | other *** search
- Path: news.london.sinet.slb.com!news
- From: Laurent Darton <darton@macon.wm.slb.com>
- Newsgroups: comp.lang.c
- Subject: integer and real numbers in C/C++
- Date: Wed, 13 Mar 1996 17:58:28 -0800
- Organization: Schlumberger SINet, London, England
- Message-ID: <31477D44.782@macon.wm.slb.com>
- NNTP-Posting-Host: macon14.macon.wm.slb.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Hi every all,
- According to IEEE 754, I can use integer coded on 24 bits (3 Bytes),
- integer coded on 48 bits (6 Bytes) and on 64 bits...
- How can I declare those values in C... I suppose I need to create new
- data structures to do that.. But I don't know how to do ...
- My compiler (MSVC 1.52) says :
- long=4 Bytes
- double =8 Bytes
- long double =10 Bytes
-
- My problem is
- - I don't want to use a long (4 Bytes) to code 3 bytes (but it
- works fine..)
- - I cannot code an integer with 8 Bytes (but only a double..)
-
- How can I do.
- Any help is welcomed.
- Thanks in advance
-